package com.woniuxy.joylifeforum.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.joylifeforum.dto.TopicDto;

import java.util.Map;

public interface TopicService {
    //查询首页热议
    PageInfo<TopicDto> findTopic(String userId,Integer page, Integer limit);
    //查询首页关注
    PageInfo<TopicDto> findTopic(Integer page, Integer limit,String userId);
    //查询我的社区话题
    PageInfo<TopicDto> findMyForumTopic(Integer page, Integer limit, String userId);
    //模糊搜索
    PageInfo<TopicDto> findTopic(String userId,String find, Integer page, Integer limit);
    Map<String, Object> findTopicCont(String topicId,String userId);

    PageInfo<Map<String, Object>> findReplyCont(String userId,Integer page, Integer limit, String topicId);

    String addReplyService(String[] imgs, String topicId, String replyId, String content, String userId, String replyUserId);

    Integer alterPraiseService(String userId, String replyId);

    Integer alterTopicPraiseService(String userId,String topicId);

    Integer alterCollectTopicService(String userId, String topicId);

    Map<String, Object> findReplyService(String userId, String replyId);

    Integer addInform(String userId, String topicId, String floorId, String content);

    PageInfo<Map<String, Object>> topicTnformService(String userId, Integer page, Integer limit, String forumId);

    Integer checkTopicInformService(String userId,String informId, Integer status);

    PageInfo<Map<String, Object>> replyTnformService(String userId, Integer page, Integer limit, String forumId);

    Integer checkReplyInformService(String userId, String informId, Integer status);

    Integer delTopic(String userId, String delId);

    Integer delConcern(String userId, String delId);
}
